const mongoose = require('mongoose')
const noticeSchema = mongoose.Schema({
  noticeTime: String,
  noticeTitle:String,
  noticeType: String,
  noticeContent: String, 
  userName: String,
  state:Number,
  createTime: {
    type:Date,
    default: Date.now()
  }
})

module.exports = mongoose.model("notice",noticeSchema,'notices')